package com.pp.common.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import lombok.experimental.Accessors;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("follow")
public class Follow {

    /**
     * 被关注用户和粉丝关联关系 ID
     */
    @TableId(type= IdType.AUTO)
    private Integer id;

    /**
     * 被关注用户 ID
     */
    @TableField("author_id")
    private String authorId;

    /**
     * 粉丝 ID
     */
    @TableField("follower_id")
    private String followerId;

}
